package com.punai.dataanalysis.epdatakb.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.punai.common.utils.NumberUtil;
import com.punai.dataanalysis.ng001.domain.ProjectTable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;

/**
 * 年度工程成本情况汇总对象 data_analysis_ndgccbqkhzb
 *
 * @author zxw_
 * @date 2023-04-20
 */
public class DataAnalysisNdgccbqkhzb extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 上级ID
     */
    @Excel(name = "上级ID")
    private String pid;
    /**
     * 统计月份
     */
    @Excel(name = "统计月份")
    private String ydTime;
    /**
     * 序号
     */
    @Excel(name = "序号")
    private String xh;
    /**
     * 合同受控号
     */
    @Excel(name = "合同受控号")
    private String htContrNo;
    /**
     * 工程名称
     */
    @Excel(name = "工程名称")
    private String proName;
    /**
     * 合同名称
     */
    @Excel(name = "合同名称")
    private String htName;
    /**
     * 合同价款
     */
    @Excel(name = "合同价款")
    private BigDecimal htTotal;
    /**
     * 建筑面积（㎡）
     */
    @Excel(name = "建筑面积", readConverterExp = "㎡=")
    private BigDecimal jzmj;
    /**
     * 区域（省、市、县区）
     */
    @Excel(name = "区域", readConverterExp = "省=、市、县区")
    private String address;
    /**
     * 工程状态
     */
    @Excel(name = "工程状态")
    private String proStatus;
    /**
     * 项目部
     */
    @Excel(name = "项目部")
    private String deptName;
    /**
     * 项目经理
     */
    @Excel(name = "项目经理")
    private String xmjl;
    /**
     * 专业
     */
    @Excel(name = "专业")
    private String zy;
    /**
     * 本年完成产值情况-本年盘点值-合计
     */
    @Excel(name = "本年完成产值情况-本年盘点值-合计")
    private BigDecimal yearCzPdHj;
    /**
     * 本年完成产值情况-本年盘点值-其中专业分包
     */
    @Excel(name = "本年完成产值情况-本年盘点值-其中专业分包")
    private BigDecimal yearCzPdZyfb;
    /**
     * 本年完成产值情况-税金
     */
    @Excel(name = "本年完成产值情况-税金")
    private BigDecimal yearCzSj;
    /**
     * 本年完成产值情况-甲供材
     */
    @Excel(name = "本年完成产值情况-甲供材")
    private BigDecimal yearCzJgc;
    /**
     * 本年发生成本情况-人工费-金额
     */
    @Excel(name = "本年发生成本情况-人工费-金额")
    private BigDecimal yearCostRgfJe;
    /**
     * 本年发生成本情况-人工费-占比
     */
    @Excel(name = "本年发生成本情况-人工费-占比")
    private BigDecimal yearCostRgfZb;
    /**
     * 本年发生成本情况-材料费-金额
     */
    @Excel(name = "本年发生成本情况-材料费-金额")
    private BigDecimal yearCostClfJe;
    /**
     * 本年发生成本情况-材料费-占比
     */
    @Excel(name = "本年发生成本情况-材料费-占比")
    private BigDecimal yearCostClfZb;
    /**
     * 本年发生成本情况-机械费-金额
     */
    @Excel(name = "本年发生成本情况-机械费-金额")
    private BigDecimal yearCostJxfJe;
    /**
     * 本年发生成本情况-机械费-占比
     */
    @Excel(name = "本年发生成本情况-机械费-占比")
    private BigDecimal yearCostJxfZb;
    /**
     * 本年发生成本情况-其他直接费-金额
     */
    @Excel(name = "本年发生成本情况-其他直接费-金额")
    private BigDecimal yearCostQtzjfJe;
    /**
     * 本年发生成本情况-其他直接费-占比
     */
    @Excel(name = "本年发生成本情况-其他直接费-占比")
    private BigDecimal yearCostQtzjfZb;
    /**
     * 本年发生成本情况-间接费-金额
     */
    @Excel(name = "本年发生成本情况-间接费-金额")
    private BigDecimal yearCostJjfJe;
    /**
     * 本年发生成本情况-间接费-占比
     */
    @Excel(name = "本年发生成本情况-间接费-占比")
    private BigDecimal yearCostJjfZb;
    /**
     * 本年发生成本情况-间接费-其中管理人员工资
     */
    @Excel(name = "本年发生成本情况-间接费-其中管理人员工资")
    private BigDecimal yearCostJjfGlrygzJe;
    /**
     * 本年发生成本情况-间接费-其中管理人员工资占比
     */
    @Excel(name = "本年发生成本情况-间接费-其中管理人员工资占比")
    private BigDecimal yearCostJjfGlrygzZb;
    /**
     * 本年发生成本情况-分包工程支出-金额
     */
    @Excel(name = "本年发生成本情况-分包工程支出-金额")
    private BigDecimal yearCostFbgczcJe;
    /**
     * 本年发生成本情况-分包工程支出-占比
     */
    @Excel(name = "本年发生成本情况-分包工程支出-占比")
    private BigDecimal yearCostFbgczcZb;
    /**
     * 本年发生成本情况-管理费用-金额
     */
    @Excel(name = "本年发生成本情况-管理费用-金额")
    private BigDecimal yearCostFyglJe;
    /**
     * 本年发生成本情况-管理费用-占比
     */
    @Excel(name = "本年发生成本情况-管理费用-占比")
    private BigDecimal yearCostFyglZb;
    /**
     * 本年发生成本情况-财务费用-金额
     */
    @Excel(name = "本年发生成本情况-财务费用-金额")
    private BigDecimal yearCostCwfyJe;
    /**
     * 本年发生成本情况-财务费用-占比
     */
    @Excel(name = "本年发生成本情况-财务费用-占比")
    private BigDecimal yearCostCwfyZb;
    /**
     * 本年发生成本情况-其他-金额
     */
    @Excel(name = "本年发生成本情况-其他-金额")
    private BigDecimal yearCostQtJe;
    /**
     * 本年发生成本情况-其他-占比
     */
    @Excel(name = "本年发生成本情况-其他-占比")
    private BigDecimal yearCostQtZb;
    /**
     * 本年发生成本情况-成本合计-金额
     */
    @Excel(name = "本年发生成本情况-成本合计-金额")
    private BigDecimal yearCostHjJe;
    /**
     * 本年发生成本情况-成本合计-占比
     */
    @Excel(name = "本年发生成本情况-成本合计-占比")
    private BigDecimal yearCostHjZb;
    /**
     * 本年发生成本情况-甲供材
     */
    @Excel(name = "本年发生成本情况-甲供材")
    private String yearJgc;
    /**
     * 利润情况-利润额
     */
    @Excel(name = "利润情况-利润额")
    private BigDecimal lre;
    /**
     * 利润情况-利润率/%
     */
    @Excel(name = "利润情况-利润率/%")
    private BigDecimal lrl;
    /**
     * 盘点建筑面积/m2
     */
    @Excel(name = "盘点建筑面积/m2")
    private String pdJzmj;
    /**
     * 盘点值平方造价/元/m2
     */
    @Excel(name = "盘点值平方造价/元/m2")
    private BigDecimal pdPmzj;
    /**
     * 合并行
     */
    @TableField(exist = false)
    private boolean hb = false;

    @TableField(exist = false)
    private String pc;

    public void hb() {
        this.hb = true;
    }

    public boolean isHb() {
        return hb;
    }

    public void setHb(boolean hb) {
        this.hb = hb;
    }

    public static DataAnalysisNdgccbqkhzb conversion(DataAnalysisNdgccbqkhzb dataAnalysisNdgccbqkhzb, ProjectTable projectTable) {
        if(dataAnalysisNdgccbqkhzb == null) dataAnalysisNdgccbqkhzb = new DataAnalysisNdgccbqkhzb();

        dataAnalysisNdgccbqkhzb.setHtContrNo(projectTable.getUserSkh());
        dataAnalysisNdgccbqkhzb.setProName(projectTable.getProjectName());
        dataAnalysisNdgccbqkhzb.setHtName(projectTable.getProjectNamep());
        dataAnalysisNdgccbqkhzb.setHtTotal(NumberUtil.getValue(projectTable.getCntAmtFc()));
        dataAnalysisNdgccbqkhzb.setJzmj(NumberUtil.getValue(projectTable.getUserJzmj()));
        dataAnalysisNdgccbqkhzb.setAddress(projectTable.getProvincename() + projectTable.getCityname() + projectTable.getRegionname());
        dataAnalysisNdgccbqkhzb.setProStatus(projectTable.getDescript());
        dataAnalysisNdgccbqkhzb.setDeptName(projectTable.getOname());
        dataAnalysisNdgccbqkhzb.setXmjl(projectTable.getCname());
        dataAnalysisNdgccbqkhzb.setZy(projectTable.getTypeName());


        return dataAnalysisNdgccbqkhzb;

    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPid() {
        return pid;
    }

    public void setYdTime(String ydTime) {
        this.ydTime = ydTime;
    }

    public String getYdTime() {
        return ydTime;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getXh() {
        return xh;
    }

    public void setHtContrNo(String htContrNo) {
        this.htContrNo = htContrNo;
    }

    public String getHtContrNo() {
        return htContrNo;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProName() {
        return proName;
    }

    public void setHtName(String htName) {
        this.htName = htName;
    }

    public String getHtName() {
        return htName;
    }

    public void setHtTotal(BigDecimal htTotal) {
        this.htTotal = htTotal;
    }

    public BigDecimal getHtTotal() {
        return htTotal;
    }

    public void setJzmj(BigDecimal jzmj) {
        this.jzmj = jzmj;
    }

    public BigDecimal getJzmj() {
        return jzmj;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setProStatus(String proStatus) {
        this.proStatus = proStatus;
    }

    public String getProStatus() {
        return proStatus;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setXmjl(String xmjl) {
        this.xmjl = xmjl;
    }

    public String getXmjl() {
        return xmjl;
    }

    public void setZy(String zy) {
        this.zy = zy;
    }

    public String getZy() {
        return zy;
    }

    public void setYearCzPdHj(BigDecimal yearCzPdHj) {
        this.yearCzPdHj = yearCzPdHj;
    }

    public BigDecimal getYearCzPdHj() {
        return yearCzPdHj;
    }

    public void setYearCzPdZyfb(BigDecimal yearCzPdZyfb) {
        this.yearCzPdZyfb = yearCzPdZyfb;
    }

    public BigDecimal getYearCzPdZyfb() {
        return yearCzPdZyfb;
    }

    public void setYearCzSj(BigDecimal yearCzSj) {
        this.yearCzSj = yearCzSj;
    }

    public BigDecimal getYearCzSj() {
        return yearCzSj;
    }

    public void setYearCzJgc(BigDecimal yearCzJgc) {
        this.yearCzJgc = yearCzJgc;
    }

    public BigDecimal getYearCzJgc() {
        return yearCzJgc;
    }

    public void setYearCostRgfJe(BigDecimal yearCostRgfJe) {
        this.yearCostRgfJe = yearCostRgfJe;
    }

    public BigDecimal getYearCostRgfJe() {
        return yearCostRgfJe;
    }

    public void setYearCostRgfZb(BigDecimal yearCostRgfZb) {
        this.yearCostRgfZb = yearCostRgfZb;
    }

    public BigDecimal getYearCostRgfZb() {
        return yearCostRgfZb;
    }

    public void setYearCostClfJe(BigDecimal yearCostClfJe) {
        this.yearCostClfJe = yearCostClfJe;
    }

    public BigDecimal getYearCostClfJe() {
        return yearCostClfJe;
    }

    public void setYearCostClfZb(BigDecimal yearCostClfZb) {
        this.yearCostClfZb = yearCostClfZb;
    }

    public BigDecimal getYearCostClfZb() {
        return yearCostClfZb;
    }

    public void setYearCostJxfJe(BigDecimal yearCostJxfJe) {
        this.yearCostJxfJe = yearCostJxfJe;
    }

    public BigDecimal getYearCostJxfJe() {
        return yearCostJxfJe;
    }

    public void setYearCostJxfZb(BigDecimal yearCostJxfZb) {
        this.yearCostJxfZb = yearCostJxfZb;
    }

    public BigDecimal getYearCostJxfZb() {
        return yearCostJxfZb;
    }

    public void setYearCostQtzjfJe(BigDecimal yearCostQtzjfJe) {
        this.yearCostQtzjfJe = yearCostQtzjfJe;
    }

    public BigDecimal getYearCostQtzjfJe() {
        return yearCostQtzjfJe;
    }

    public void setYearCostQtzjfZb(BigDecimal yearCostQtzjfZb) {
        this.yearCostQtzjfZb = yearCostQtzjfZb;
    }

    public BigDecimal getYearCostQtzjfZb() {
        return yearCostQtzjfZb;
    }

    public void setYearCostJjfJe(BigDecimal yearCostJjfJe) {
        this.yearCostJjfJe = yearCostJjfJe;
    }

    public BigDecimal getYearCostJjfJe() {
        return yearCostJjfJe;
    }

    public void setYearCostJjfZb(BigDecimal yearCostJjfZb) {
        this.yearCostJjfZb = yearCostJjfZb;
    }

    public BigDecimal getYearCostJjfZb() {
        return yearCostJjfZb;
    }

    public void setYearCostFbgczcJe(BigDecimal yearCostFbgczcJe) {
        this.yearCostFbgczcJe = yearCostFbgczcJe;
    }

    public BigDecimal getYearCostFbgczcJe() {
        return yearCostFbgczcJe;
    }

    public void setYearCostFbgczcZb(BigDecimal yearCostFbgczcZb) {
        this.yearCostFbgczcZb = yearCostFbgczcZb;
    }

    public BigDecimal getYearCostFbgczcZb() {
        return yearCostFbgczcZb;
    }

    public void setYearCostFyglJe(BigDecimal yearCostFyglJe) {
        this.yearCostFyglJe = yearCostFyglJe;
    }

    public BigDecimal getYearCostFyglJe() {
        return yearCostFyglJe;
    }

    public void setYearCostFyglZb(BigDecimal yearCostFyglZb) {
        this.yearCostFyglZb = yearCostFyglZb;
    }

    public BigDecimal getYearCostFyglZb() {
        return yearCostFyglZb;
    }

    public void setYearCostCwfyJe(BigDecimal yearCostCwfyJe) {
        this.yearCostCwfyJe = yearCostCwfyJe;
    }

    public BigDecimal getYearCostCwfyJe() {
        return yearCostCwfyJe;
    }

    public void setYearCostCwfyZb(BigDecimal yearCostCwfyZb) {
        this.yearCostCwfyZb = yearCostCwfyZb;
    }

    public BigDecimal getYearCostCwfyZb() {
        return yearCostCwfyZb;
    }

    public void setYearCostQtJe(BigDecimal yearCostQtJe) {
        this.yearCostQtJe = yearCostQtJe;
    }

    public BigDecimal getYearCostQtJe() {
        return yearCostQtJe;
    }

    public void setYearCostQtZb(BigDecimal yearCostQtZb) {
        this.yearCostQtZb = yearCostQtZb;
    }

    public BigDecimal getYearCostQtZb() {
        return yearCostQtZb;
    }

    public void setYearCostHjJe(BigDecimal yearCostHjJe) {
        this.yearCostHjJe = yearCostHjJe;
    }

    public BigDecimal getYearCostHjJe() {
        return yearCostHjJe;
    }

    public void setYearCostHjZb(BigDecimal yearCostHjZb) {
        this.yearCostHjZb = yearCostHjZb;
    }

    public BigDecimal getYearCostHjZb() {
        return yearCostHjZb;
    }

    public void setYearJgc(String yearJgc) {
        this.yearJgc = yearJgc;
    }

    public String getYearJgc() {
        return yearJgc;
    }

    public void setLre(BigDecimal lre) {
        this.lre = lre;
    }

    public BigDecimal getLre() {
        return lre;
    }

    public void setLrl(BigDecimal lrl) {
        this.lrl = lrl;
    }

    public BigDecimal getLrl() {
        return lrl;
    }

    public void setPdJzmj(String pdJzmj) {
        this.pdJzmj = pdJzmj;
    }

    public String getPdJzmj() {
        return pdJzmj;
    }

    public void setPdPmzj(BigDecimal pdPmzj) {
        this.pdPmzj = pdPmzj;
    }

    public BigDecimal getPdPmzj() {
        return pdPmzj;
    }

    public BigDecimal getYearCostJjfGlrygzJe() {
        return yearCostJjfGlrygzJe;
    }

    public void setYearCostJjfGlrygzJe(BigDecimal yearCostJjfGlrygzJe) {
        this.yearCostJjfGlrygzJe = yearCostJjfGlrygzJe;
    }

    public BigDecimal getYearCostJjfGlrygzZb() {
        return yearCostJjfGlrygzZb;
    }

    public void setYearCostJjfGlrygzZb(BigDecimal yearCostJjfGlrygzZb) {
        this.yearCostJjfGlrygzZb = yearCostJjfGlrygzZb;
    }

    public String getPc() {
        return pc;
    }

    public void setPc(String pc) {
        this.pc = pc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("ydTime", getYdTime())
                .append("xh", getXh())
                .append("htContrNo", getHtContrNo())
                .append("proName", getProName())
                .append("htName", getHtName())
                .append("htTotal", getHtTotal())
                .append("jzmj", getJzmj())
                .append("address", getAddress())
                .append("proStatus", getProStatus())
                .append("deptName", getDeptName())
                .append("xmjl", getXmjl())
                .append("zy", getZy())
                .append("yearCzPdHj", getYearCzPdHj())
                .append("yearCzPdZyfb", getYearCzPdZyfb())
                .append("yearCzSj", getYearCzSj())
                .append("yearCzJgc", getYearCzJgc())
                .append("yearCostRgfJe", getYearCostRgfJe())
                .append("yearCostRgfZb", getYearCostRgfZb())
                .append("yearCostClfJe", getYearCostClfJe())
                .append("yearCostClfZb", getYearCostClfZb())
                .append("yearCostJxfJe", getYearCostJxfJe())
                .append("yearCostJxfZb", getYearCostJxfZb())
                .append("yearCostQtzjfJe", getYearCostQtzjfJe())
                .append("yearCostQtzjfZb", getYearCostQtzjfZb())
                .append("yearCostJjfJe", getYearCostJjfJe())
                .append("yearCostJjfZb", getYearCostJjfZb())
                .append("yearCostFbgczcJe", getYearCostFbgczcJe())
                .append("yearCostFbgczcZb", getYearCostFbgczcZb())
                .append("yearCostFyglJe", getYearCostFyglJe())
                .append("yearCostFyglZb", getYearCostFyglZb())
                .append("yearCostCwfyJe", getYearCostCwfyJe())
                .append("yearCostCwfyZb", getYearCostCwfyZb())
                .append("yearCostQtJe", getYearCostQtJe())
                .append("yearCostQtZb", getYearCostQtZb())
                .append("yearCostHjJe", getYearCostHjJe())
                .append("yearCostHjZb", getYearCostHjZb())
                .append("yearJgc", getYearJgc())
                .append("lre", getLre())
                .append("lrl", getLrl())
                .append("pdJzmj", getPdJzmj())
                .append("pdPmzj", getPdPmzj())
                .toString();
    }
}
